/*
 * An XML document type.
 * Localname: FahrenheitToCelsius
 * Namespace: http://tempuri.org/
 * Java type: org.tempuri.FahrenheitToCelsiusDocument
 *
 * Automatically generated - do not modify.
 */
package org.tempuri.impl;
/**
 * A document containing one FahrenheitToCelsius(@http://tempuri.org/) element.
 *
 * This is a complex type.
 */
public class FahrenheitToCelsiusDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.tempuri.FahrenheitToCelsiusDocument
{
    
    public FahrenheitToCelsiusDocumentImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FAHRENHEITTOCELSIUS$0 = 
        new javax.xml.namespace.QName("http://tempuri.org/", "FahrenheitToCelsius");
    
    
    /**
     * Gets the "FahrenheitToCelsius" element
     */
    public org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius getFahrenheitToCelsius()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius target = null;
            target = (org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius)get_store().find_element_user(FAHRENHEITTOCELSIUS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * Sets the "FahrenheitToCelsius" element
     */
    public void setFahrenheitToCelsius(org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius fahrenheitToCelsius)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius target = null;
            target = (org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius)get_store().find_element_user(FAHRENHEITTOCELSIUS$0, 0);
            if (target == null)
            {
                target = (org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius)get_store().add_element_user(FAHRENHEITTOCELSIUS$0);
            }
            target.set(fahrenheitToCelsius);
        }
    }
    
    /**
     * Appends and returns a new empty "FahrenheitToCelsius" element
     */
    public org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius addNewFahrenheitToCelsius()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius target = null;
            target = (org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius)get_store().add_element_user(FAHRENHEITTOCELSIUS$0);
            return target;
        }
    }
    /**
     * An XML FahrenheitToCelsius(@http://tempuri.org/).
     *
     * This is a complex type.
     */
    public static class FahrenheitToCelsiusImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements org.tempuri.FahrenheitToCelsiusDocument.FahrenheitToCelsius
    {
        
        public FahrenheitToCelsiusImpl(org.apache.xmlbeans.SchemaType sType)
        {
            super(sType);
        }
        
        private static final javax.xml.namespace.QName FAHRENHEIT$0 = 
            new javax.xml.namespace.QName("http://tempuri.org/", "Fahrenheit");
        
        
        /**
         * Gets the "Fahrenheit" element
         */
        public java.lang.String getFahrenheit()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAHRENHEIT$0, 0);
                if (target == null)
                {
                    return null;
                }
                return target.getStringValue();
            }
        }
        
        /**
         * Gets (as xml) the "Fahrenheit" element
         */
        public org.apache.xmlbeans.XmlString xgetFahrenheit()
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FAHRENHEIT$0, 0);
                return target;
            }
        }
        
        /**
         * True if has "Fahrenheit" element
         */
        public boolean isSetFahrenheit()
        {
            synchronized (monitor())
            {
                check_orphaned();
                return get_store().count_elements(FAHRENHEIT$0) != 0;
            }
        }
        
        /**
         * Sets the "Fahrenheit" element
         */
        public void setFahrenheit(java.lang.String fahrenheit)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.SimpleValue target = null;
                target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FAHRENHEIT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FAHRENHEIT$0);
                }
                target.setStringValue(fahrenheit);
            }
        }
        
        /**
         * Sets (as xml) the "Fahrenheit" element
         */
        public void xsetFahrenheit(org.apache.xmlbeans.XmlString fahrenheit)
        {
            synchronized (monitor())
            {
                check_orphaned();
                org.apache.xmlbeans.XmlString target = null;
                target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(FAHRENHEIT$0, 0);
                if (target == null)
                {
                    target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(FAHRENHEIT$0);
                }
                target.set(fahrenheit);
            }
        }
        
        /**
         * Unsets the "Fahrenheit" element
         */
        public void unsetFahrenheit()
        {
            synchronized (monitor())
            {
                check_orphaned();
                get_store().remove_element(FAHRENHEIT$0, 0);
            }
        }
    }
}
